/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package awareness.communication;

import javax.bluetooth.DeviceClass;
import javax.bluetooth.DiscoveryListener;
import javax.bluetooth.RemoteDevice;
import javax.bluetooth.ServiceRecord;

/**
 *
 * @author led
 */
public class ServiceListener implements DiscoveryListener {

    public ServiceRecord service;

    public ServiceListener() {
    }

    public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {
    }

    public void inquiryCompleted(int discType) {
    }

    public void serviceSearchCompleted(int transID, int respCode) {
    }

    public void servicesDiscovered(int transID, ServiceRecord[] servRecord) {
        service = servRecord[0];
    }

    public ServiceRecord getService() {
        return service;
    }
}
